package Singleton_Pattern.Mysql;

import java.util.Scanner;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        sql sql1;
        sql1=sql.getInstance();
        System.out.println("请输入数据库连接对象个数");
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        for (int i=0 ;i<a;i++){
            sql1.add_sql("sql"+i);
        }
        String mys =sql1.getSql();
        System.out.println("连接号为"+mys);

    }
}
